import {createApp} from 'vue'
import {createPinia} from 'pinia'
import App from './App.vue'
import router from './router'
import Antd, {message} from 'ant-design-vue'
import 'normalize.css'
import './assets/css/base.scss'
import resize from "@/directives/resize";
import debounce from '@/directives/debounce'
import permission from "@/directives/permission.js";
import "@/utils/rem.js";
import ScrollWrapper from '@/components/ScrollWrapper/ScrollWrapper.vue' //恢复页面滚动效果
const app = createApp(App)
message.config({
    top: `100px`,
})
app.use(createPinia())
app.use(router)
app.use(Antd)
app.directive('permission', permission)
app.directive('debounce', debounce)
app.component('ScrollWrapper', ScrollWrapper)
app.directive("chart-resize", {mounted: resize.bind, unmounted: resize.unbind});
app.mount('#app')
